package com.ajmd.onlineexam.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author ajmd
 * @since 2023/5/3 15:40
 */
@TableName("e_exam")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ExamPO implements Serializable {
    //唯一标识
    private String id;
    //考试名称
    private String examName;
    //所用试卷id
    private String testPaperId;
    //所用试卷名称
    private String testPaperName;
    //开考时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp startTime;
    //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp endTime;
    //考试说明
    private String description;
    //考试限时
    private Integer timeLimit;
    //限考次数
    private Integer limitTimes;
    //通过分数
    private Integer passScore;
    //状态（0未开考，1进行中，2已结束）
    private Integer status;
    //可获学分
    private Integer credit;
    //考试对象
    private String examinees;
    //考前提醒
    private Integer preExamReminder;
    //考试抓拍
    private Boolean faceCapture;
    //人脸核验
    private Boolean facialVerification;
    //防作弊
    private Boolean preventionCheat;
    //创建人类型
    private Integer creatorType;
    //创建人
    private String createPerson;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp updateTime;
}